package com.gitee.neuray.security.gateway.filter;/*
package com.gitee.neuray.security.gateway.filter;

import cn.hutool.core.exceptions.ExceptionUtil;
import com.alibaba.fastjson.JSON;
import com.gitee.neuray.security.admin.authority.PermissionElementDto;
import com.gitee.neuray.security.auth.client.config.ServiceAuthConfig;
import com.gitee.neuray.security.auth.client.config.SysAuthConfig;
import com.gitee.neuray.security.auth.client.config.UserAuthConfig;
import com.gitee.neuray.security.auth.client.jwt.ServiceAuthUtil;
import com.gitee.neuray.security.auth.common.util.jwt.IJWTInfo;
import com.gitee.neuray.security.common.context.BaseContextHandler;
import com.gitee.neuray.security.common.msg.auth.TokenErrorResponse;
import com.gitee.neuray.security.common.util.ExceptionCommonUtil;
import com.gitee.neuray.security.gateway.config.GateWayLog;
import com.gitee.neuray.security.gateway.config.ZuuljwtUser;
import com.gitee.neuray.security.gateway.feign.IUserServiceFeignClient;
import com.gitee.neuray.security.gateway.strategy.AbstratePermissionStrategy;
import com.gitee.neuray.security.gateway.strategy.InterfaceWhiteListStrategy;
import com.gitee.neuray.security.gateway.utils.GateWayResponseUtils;
import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.context.RequestContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Objects;

*/
/**
 * 网关核心权限拦截类
 *
 * @author 协同设计小组
 * @create 2017-06-23 8:25
 *//*

@Component
@Slf4j
public class WechatFilter extends ZuulFilter {
    @Autowired
    @Lazy
    private IUserServiceFeignClient userService;

    @Value("${zuul.prefix}")
    private String zuulPrefix;

    @Autowired
    private ServiceAuthConfig serviceAuthConfig;

    @Autowired
    private UserAuthConfig userAuthConfig;

    @Autowired
    private ServiceAuthUtil serviceAuthUtil;
    @Autowired
    private SysAuthConfig sysAuthConfig;
    @Autowired
    private AbstratePermissionStrategy permission;
    @Autowired
    private GateWayLog gateWayLog;
    @Autowired
    private InterfaceWhiteListStrategy whiteListStrategy;
    @Autowired
    private ZuuljwtUser zuuljwtUser;

    @Override
    public String filterType() {
        return "pre";
    }

    @Override
    public int filterOrder() {
        return 1;
    }

    @Override
    public boolean shouldFilter() {
        RequestContext ctx = RequestContext.getCurrentContext();
        HttpServletRequest request = ctx.getRequest();
        // todo 判断
        return true;
    }

    @Override
    public Object run() {
        RequestContext ctx = RequestContext.getCurrentContext();
        HttpServletRequest request = ctx.getRequest();

        ctx.getResponse().setHeader("");
        return null;
    }
}
*/
